package com.mxpio.erp.common.equipment.service;

import com.mxpio.erp.common.equipment.entity.EquipmentCheckPlanTarget;
import com.mxpioframework.system.service.BaseService;

import java.util.List;

/**
 * @Description: 点巡检计划目标
 * @Author: jeecg-boot
 * @Date:   2021-09-16
 * @Version: V1.0
 */
public interface EquipmentCheckPlanTargetService extends BaseService<EquipmentCheckPlanTarget> {

    public static final String AREA_TARGET = "area";
    public static final String EQP_TARGET = "equipment";

	public List<EquipmentCheckPlanTarget> selectByMainId(String mainId);


    /**
     * 根据分类id添加目标
     * @param planId
     * @param categoryId
     */
    public void addTargetByCatgoryId(String planId, String categoryId);

    /**
     * 新增区域目标
     * @param equipmentCheckPlanTarget
     */
    public void addAreaTarget(EquipmentCheckPlanTarget equipmentCheckPlanTarget);

    /**
     * 新增设备目标
     * @param equipmentCheckPlanTarget
     */
    public void addEqpTargets(EquipmentCheckPlanTarget equipmentCheckPlanTarget);
}
